package com.longxin.demoapp.experiments.experiment2.controller;


import android.os.Bundle;
import com.longxin.demoapp.R;
import com.longxin.demoapp.base.controller.IBaseController;
import com.longxin.demoapp.experiments.experiment2.adapter.Experiment2Adapter;
import com.longxin.demoapp.experiments.experiment2.pojo.entity.Experiment2EntityUser;
import com.longxin.demoapp.experiments.experiment2.service.Experiment2Service;
import com.longxin.demoapp.experiments.experiment2.service.impl.Experiment2ServiceImpl;

/**
 * @author Long
 * @version 1.0
 * @description:
 * @remarks:
 * @title ExperimentActivity2Controller
 * @date 2021/4/6 17:31
 */
public class Experiment2Controller extends IBaseController<Experiment2Service> {

    Experiment2Adapter adapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.experiment_2_main);

        //服务层初始化
        service = new Experiment2ServiceImpl(this);

        adapter = new Experiment2Adapter(this, service.query(null), service);
        service.initActivity(adapter);
    }

}
